<template>
  <div class="app-container home">
    <el-row :gutter="20">
      <el-col :sm="24" :lg="24">
        <blockquote class="text-warning" style="font-size: 14px">
          SpringBoot中的定时任务的实现方案大致有以下几种:
          <br />


          <ul class= "nav__items" id= "subnav" >
            <li>1、 Timer和TimerTask  </li>
            <li>2、 ScheduledExecutorService  </li>
            <li>3、 三方框架 Quartz或者xxl-job </li>
          </ul>


        </blockquote>

        <hr />
      </el-col>
    </el-row>
    <el-row :gutter="20">
      <el-col :sm="24" :lg="12" style="padding-left: 20px">
        <h2>job-manager定时任务管理系统</h2>
        <p>
        </p>
        <p>
          <b>当前版本:</b> <span>1.0.0-Bate</span>
        </p>
        <p>
          <el-button
            type="primary"
            size="mini"
            icon="el-icon-cloudy"
            plain
            @click="goTarget('https://gitee.com/monxz/my-job.git')"
            >请选择Bate分支</el-button
          >

        </p>
      </el-col>

      <el-col :sm="24" :lg="12" style="padding-left: 50px">
        <el-row>
          <el-col :span="12">
            <h2>技术选型</h2>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="6">
            <h4>后端技术</h4>
            <ul>
              <li>SpringBoot</li>
              <li>Spring Security</li>
              <li>JWT</li>
              <li>MyBatis</li>
              <li>Druid</li>
              <li>Fastjson</li>
              <li>...</li>
            </ul>
          </el-col>
          <el-col :span="6">
            <h4>前端技术</h4>
            <ul>
              <li>Vue</li>
              <li>Vuex</li>
              <li>Element-ui</li>
              <li>Axios</li>
              <li>Sass</li>
              <li>Quill</li>
              <li>...</li>
            </ul>
          </el-col>
        </el-row>
      </el-col>
    </el-row>
    <el-divider />
    <el-row :gutter="20">
      <el-col :xs="24" :sm="24" :md="12" :lg="8">
        <el-card class="update-log">
          <div slot="header" class="clearfix">
            <span>定时任务对比</span>
          </div>
          <div class="body">

            <p >
              <i class="el-icon-chat-dot-round">task：</i>
            <ul>
              <li>优点：简单易用</li>
              <li>缺点：多个任务公用一个线程，不支持多任务的并行</li>
            </ul>
                </a>
            </p>

            <p >
              <i class="el-icon-chat-dot-round">Scheduled：</i>
            <ul>
              <li>优点：支持多线程</li>
              <li>缺点：不能实现负载的Cron</li>
            </ul>
                </a>
            </p>

          </div>
        </el-card>
      </el-col>
      <el-col :xs="24" :sm="24" :md="12" :lg="8">
        <el-card class="update-log">
          <div slot="header" class="clearfix">
            <span>更新日志</span>
          </div>
          <el-collapse accordion>
            <el-collapse-item title="v1.0.0 Bate - 2021-03">
              <ol>
                <li>添加用户模块</li>
              </ol>
            </el-collapse-item>
            <el-collapse-item title="v1.0.0 master - 2021-01 ~ 2021-03">
              <ol>
                <li>实现客户端的容灾策略</li>
                <li>实现客户端负载均衡</li>
                <li>实现客户端集群</li>
              </ol>
            </el-collapse-item>

            <el-collapse-item title="v1.0.0 dev -  2021-01">
              <ol>
                 <li>实现客户端分发任务</li>
                <li>实现动态定时任务</li>
              </ol>
            </el-collapse-item>

          </el-collapse>
        </el-card>
      </el-col>
     
    </el-row>
  </div>
</template>

<script>
export default {
  name: "index",
  data() {
    return {
      // 版本号
      version: "3.3.0",
    };
  },
  methods: {
    goTarget(href) {
      window.open(href, "_blank");
    },
  },
};
</script>

<style scoped lang="scss">
.home {
  blockquote {
    padding: 10px 20px;
    margin: 0 0 20px;
    font-size: 17.5px;
    border-left: 5px solid #eee;
  }
  hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #eee;
  }
  .col-item {
    margin-bottom: 20px;
  }

  ul {
    padding: 0;
    margin: 0;
  }

  font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: #676a6c;
  overflow-x: hidden;

  ul {
    list-style-type: none;
  }

  h4 {
    margin-top: 0px;
  }

  h2 {
    margin-top: 10px;
    font-size: 26px;
    font-weight: 100;
  }

  p {
    margin-top: 10px;

    b {
      font-weight: 700;
    }
  }

  .update-log {
    ol {
      display: block;
      list-style-type: decimal;
      margin-block-start: 1em;
      margin-block-end: 1em;
      margin-inline-start: 0;
      margin-inline-end: 0;
      padding-inline-start: 40px;
    }
  }
}
</style>
